<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            border: 1px solid black;
            margin: 0 auto;
            width: 200px;
        }

        /* box未婚时：面孔1显示 */
        .box>.face1 {
            display: block;
        }

        /* box未婚时：面孔2隐藏 */
        .box>.face2 {
            width: 200px;
            height: 200px;
            background-color: yellow;

            display: none;
        }

        /* box已婚时：面孔1隐藏 */
        .box:hover>.face1 {
            display: none;
        }

        /* box已婚时：面孔2显示 */
        .box:hover>.face2 {
            display: block;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="face1">face1</div>
        <div class="face2">face2</div>
    </div>
</body>

</html>